<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>推送历史</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function () {

        });

        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/notify/notiMessage/">推送历史</a></li>
    <shiro:hasPermission name="notify:notiMessage:edit">
        <li><a href="${ctx}/notify/notiMessage/form">推送消息</a></li>
    </shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="notiMessage" action="${ctx}/notify/notiMessage/" method="post"
           class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <ul class="ul-form">
        <li><label>消息内容：</label>
            <form:input path="msgContent" htmlEscape="false" maxlength="1024" class="input-medium"/>
        </li>
        <li><label>推送平台：</label>
            <form:input path="pushPlatform" htmlEscape="false" maxlength="20" class="input-medium"/>
        </li>
        <li><label>推送类型/目标：</label>
            <form:input path="pushType" htmlEscape="false" maxlength="20" class="input-medium"/>
        </li>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>消息标题</th>
        <th>消息内容</th>
        <th>推送平台</th>
        <th>推送类型</th>
        <th>推送别名/目标</th>
        <th>安卓推送总数</th>
        <th>安卓推送成功数</th>
        <%--<th>苹果推送总数</th>
        <th>苹果推送成功数</th>
        <th>winphone推送总数</th>
        <th>winphone推送成功数</th>--%>
        <th>appid</th>
        <th>app版本</th>
        <th>推送者</th>
        <th>推送时间</th>
        <%--<shiro:hasPermission name="notify:notiMessage:edit"><th>操作</th></shiro:hasPermission>--%>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="notiMessage">
        <tr>
            <td>
                    ${notiMessage.msgTitle}
            </td>
            <td>
                    <%--<a href="${ctx}/notify/notiMessage/form?id=${notiMessage.id}">--%>
                    ${notiMessage.msgContent}
                    <%--</a>--%>
            </td>
            <td>
                    ${notiMessage.pushPlatform}
            </td>
            <td>
                    ${notiMessage.pushType}
            </td>
            <td>
                    ${notiMessage.pushAliasTag}
            </td>
            <td>
                    ${notiMessage.pushAndroidToal}
            </td>
            <td>
                    ${notiMessage.pushAndroidSuccess}
            </td>
                <%--<td>
                        ${notiMessage.pushAppleToal}
                </td>
                <td>
                        ${notiMessage.pushAppleSuccess}
                </td>
                <td>
                        ${notiMessage.pushWinphoneToal}
                </td>
                <td>
                        ${notiMessage.pushWinphoneSuccess}
                </td>--%>
            <td>
                    ${notiMessage.appid}
            </td>
            <td>
                    ${notiMessage.appedition}
            </td>
            <td>
                    ${notiMessage.createBy.id}
            </td>
            <td>
                <fmt:formatDate value="${notiMessage.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
            </td>
                <%--<shiro:hasPermission name="notify:notiMessage:edit"><td>--%>
                <%--<a href="${ctx}/notify/notiMessage/form?id=${notiMessage.id}">修改</a>--%>
                <%--<a href="${ctx}/notify/notiMessage/delete?id=${notiMessage.id}" onclick="return confirmx('确认要删除该推送消息吗？', this.href)">删除</a>--%>
                <%--</td></shiro:hasPermission>--%>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>